<template>
  <el-container ref="layout" style="height:100%">
    <el-header>
      <headerBar ref='headerBar'></headerBar>
    </el-header>
    <el-container>
      <el-aside width="220px">
        <menu-list></menu-list>
      </el-aside>
      <el-main>
        <router-view></router-view>
      </el-main>
    </el-container>
  </el-container>
</template>

<script>
import headerBar from "@/components/headerbar/index";
import menuList from "@/components/menulist/index";

export default {
  name: "Layout",
  components: {
    menuList,
    headerBar,
  },
  data() {
    return {};
  },
  created: function () {},
};
</script>

<style scoped>
.el-header {
  background-color: #5399e1;
  color: #fff;
  height: 70px !important;
  text-align: center;
  line-height: 70px;
}

.el-aside {
  text-align: center;
}

.el-main {
  height: 100%;
  background-color: #eee;
  padding: 15px !important;
  overflow: auto;
}
</style>
